#pragma once
#include <termios.h>

#define CIPHER_SIZE 1024

// 禁用终端回显
void disable_echo(int fd, struct termios* old_termios);
// 恢复终端回显
void restore_echo(int fd, struct termios* old_termios);

int aes256_encrypt(const unsigned char* plaintext, int plaintext_len,
                   unsigned char* ciphertext);

int aes256_decrypt(const unsigned char* ciphertext, int ciphertext_len, 
                   unsigned char* plaintext);

